<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
  <meta http-equiv=content-type
        content="text/html; charset=UTF-8;charset=utf-8"/>
  <title>18团购 - 管理后台</title>
  <link rel="stylesheet" href="/css/index.css" type="text/css" media="screen" charset="utf-8"/>
  <script type="text/javascript" src="../js/jquery-1.6.js"></script>
  <script type="text/javascript">
    $(document).ready(function() {
      $('#main_li').attr("class", "current")

    })
  </script>
</head>
<body class="newbie">
<div id="pagemasker"></div>
<div id="dialog"></div>
<div id="doc">
  <jsp:include page="../common/adminHeader.jsp"/>

  <div id="bdw" class="bdw">
    <div id="bd" class="cf">
      <div id="help">
        <div class="dashboard" id="dashboard">
          <ul>
            <li class="current">
              <a href="index.jsp">首页</a><span></span>
            </li>
            <li>
              <a href="#">修改密码</a><span></span>
            </li>
          </ul>
        </div>
        <div id="content" class="coupons-box clear mainwide">
          <div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">

              <s:action name="getStats" namespace="/admin" id="stats"/>
              <div class="head">
                <h2>
                  18团购后台管理系统
                </h2>
              </div>
              <div class="sect">
                <div class="wholetip clear">
                  <h3>
                    今日数据
                  </h3>
                </div>
                <div style="margin: 0 20px;">
                  <p>
                    今日注册用户数：${stats.stats.registerUsersToday}
                    (<a href="listUser.action">查看</a>)
                  </p>

                  <p>
                    今日团购订单数：${stats.stats.orderToday}
                     (<a href="listWaitingOrder.action">查看</a>)
                  </p>
                </div>
                <div class="wholetip clear">
                  <h3>
                    统计数据
                  </h3>
                </div>
                <div style="margin: 0 20px;">
                  <p>
                    团购项目数：${stats.stats.itemAll}
                     (<a href="listItem.action">查看</a>)
                  </p>

                  <p>
                    用户注册数：${stats.stats.registerUsersAll}
                     (<a href="listUser.action">查看</a>)
                  </p>

                  <p>
                    团购订单数：${stats.stats.orderAll}
                    (<a href="listSuccessOrder.action">查看</a>)
                  </p>
                </div>
              </div>
            </div>
            <div class="box-bottom"></div>
          </div>
        </div>
      </div>
    </div>
    <!-- bd end -->
  </div>

  <jsp:include page="../common/footer.jsp"/>
</div>
</body>
</html>